import { useCount } from '.'

function App() {
  const { count, fn } = useCount()
  const { count: c, fn: fn2 } = useCount()

  return (
    <div>
      <h1>自定义hooks</h1>
      <ul>
        <li>{c}</li>
        <li>{count}</li>
        <li>
          <button onClick={fn}>add</button>
        </li>
      </ul>
    </div>
  )
}

export default App
